package com.atguigu.common.constant;

import lombok.Getter;

/**
 * @author zhuguanming
 * @date 2021/4/24
 */
public class ProductConstant {

    @Getter
    public enum AttrEnum {
        // 基本属性、销售属性
        ATTR_TYPE_BASE(1, "基本属性"), ATTR_TYPE_SALE(0, "销售属性");
        private final Integer code;
        private final String msg;

        AttrEnum(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }

    @Getter
    public enum SpuStatusEnum {
        // 上架状态[0 - 创建，1 - 上架，2 - 下架]
        SPU_CREATED(0, "创建"), SPU_UP(1, "上架"),
        SPU_DOWN(2, "下架");
        private final Integer code;
        private final String msg;

        SpuStatusEnum(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }
}
